package com.chen.mapper;

import com.chen.entity.Coupon;
import com.chen.entity.CouponProductRegionRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.vo.MyCouponHistoryVo;

import java.util.List;

/**
 * <p>
 * 优惠券和产品地州关系表 Mapper 接口
 * </p>
 *
 * @author cws
 * @since 2024-11-22
 */
public interface CouponProductRegionRelationMapper extends BaseMapper<CouponProductRegionRelation> {

    List<Coupon> selectByRegionId(Long regionId);

    MyCouponHistoryVo CanBeUsedCouponList(Long couponId);

}
